//.box group order 
function groupBox(){
	var $box=$("#box").children(".box"),
		$span=$("#tab").children("span"),
		$focus=$span.filter(".focus");
		$box.eq($span.index($focus)).show().siblings(".box").hide();
	$span.click(function(){
		var $len=$span.index(this);
		$(this).addClass("focus").siblings().removeClass("focus");
		$box.eq($len).show().siblings(".box").hide();	
	});	
};

//.products td
function productsTd(){
	$(".products td").hover(function(){$(this).css({"background":"#0087C8","color":"#fff"})},function(){$(this).css({"background":"#fff","color":"#333"})});	
}

 function startScroll(obj){
$("#"+obj).find("ul").each(function() {
			$(this).html($(this).html()+$(this).html());
			var $Ul=$(this);
			var $Li=$(this).children("li");
			$Ul.height(24*$Li.length);
			$(this).parent().height($Ul.height()/2);
			function scrol3(){
				if(parseInt($Ul.css("top"))<=-$Ul.height()/2){
					$Ul.css("top",0);	
				}else{
					$Ul.css("top",parseInt($Ul.css("top"))-1+"px");	
				}		
			}
			$Ul.timer2=setInterval(scrol3,60);
			$Ul.hover(function(){
				clearInterval($Ul.timer2);
				},function(){
					$Ul.timer2=setInterval(scrol3,60);
			 });
			
});
}